Optimal. Leaf size=31 \[ \sqrt{2} \tanh ^{-1}\left (\frac{\cos (x)}{\sqrt{2} \sqrt{1-\sin (x)} \sqrt{\sin (x)}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0459595, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {2782, 206} \[ \sqrt{2} \tanh ^{-1}\left (\frac{\cos (x)}{\sqrt{2} \sqrt{1-\sin (x)} \sqrt{\sin (x)}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2782
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{\sqrt{1-\sin (x)} \sqrt{\sin (x)}} \, dx &=-\left (2 \operatorname{Subst}\left (\int \frac{1}{2-x^2} \, dx,x,-\frac{\cos (x)}{\sqrt{1-\sin (x)} \sqrt{\sin (x)}}\right )\right )\\ &=\sqrt{2} \tanh ^{-1}\left (\frac{\cos (x)}{\sqrt{2} \sqrt{1-\sin (x)} \sqrt{\sin (x)}}\right )\\ \end{align*}
Mathematica [C] time = 2.402, size = 125, normalized size = 4.03 \[ \frac{2 \sin (x) \sec ^2\left (\frac{x}{4}\right ) \left (\cos \left (\frac{x}{2}\right )-\sin \left (\frac{x}{2}\right )\right ) \left (F\left (\left .\sin ^{-1}\left (\frac{1}{\sqrt{\tan \left (\frac{x}{4}\right )}}\right )\right |-1\right )+\Pi \left (-1-\sqrt{2};\left .-\sin ^{-1}\left (\frac{1}{\sqrt{\tan \left (\frac{x}{4}\right )}}\right )\right |-1\right )+\Pi \left (-1+\sqrt{2};\left .-\sin ^{-1}\left (\frac{1}{\sqrt{\tan \left (\frac{x}{4}\right )}}\right )\right |-1\right )\right )}{\sqrt{-(\sin (x)-1) \sin (x)} \tan ^{\frac{3}{2}}\left (\frac{x}{4}\right ) \sqrt{1-\cot ^2\left (\frac{x}{4}\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.098, size = 52, normalized size = 1.7 \begin{align*} -2\,{\frac{ \left ( -1+\cos \left ( x \right ) +\sin \left ( x \right ) \right ) \sqrt{\sin \left ( x \right ) }}{\sqrt{1-\sin \left ( x \right ) } \left ( -1+\cos \left ( x \right ) \right ) }\sqrt{-{\frac{-1+\cos \left ( x \right ) }{\sin \left ( x \right ) }}}{\it Artanh} \left ( \sqrt{-{\frac{-1+\cos \left ( x \right ) }{\sin \left ( x \right ) }}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{-\sin \left (x\right ) + 1} \sqrt{\sin \left (x\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.67378, size = 104, normalized size = 3.35 \begin{align*} \sqrt{2} \log \left (\frac{\sqrt{2} \sqrt{-\sin \left (x\right ) + 1} \sqrt{\sin \left (x\right )} + \cos \left (x\right )}{\sin \left (x\right ) - 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{1 - \sin{\left (x \right )}} \sqrt{\sin{\left (x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{-\sin \left (x\right ) + 1} \sqrt{\sin \left (x\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]